﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Characters;

namespace The_Chronicles_of_Asku
{
    class Training
    {
        Hero myHero = new Hero();
        Mob skel = new Skeleton();
        Battle battle = new Battle();
        public bool complete = false;

        public void entrance(Hero myHero, Skeleton testSkel)
        {
            Necromancer necro = new Necromancer();
            Undead zombie = new Undead();
            SetMobLevels setLevel = new SetMobLevels();
            setLevel.setMobLevelOne(testSkel, necro, zombie);

            Console.WriteLine("Samil prepares a skeleton for you to face in training. You must complete your training successfully before you can enter the tomb of King Drake. \n\n Prepare yourself! Samil is summoning a skeleton! Prepare for battle!");
            battle.Fight(myHero, testSkel);

            if (myHero.health > 0)
            {
                Console.WriteLine("Congratulations! You won! You are now able to enter King Drake's Tomb!");
                complete = true;
            }

            else if (myHero.health == 0)
            {
                Console.WriteLine("You failed. Try again later. Better luck next time.");
                myHero.isAlive = true;
            }

            testSkel.ResetStats(testSkel);
            myHero.ResetStats(myHero);

            Console.ReadLine();
            Console.Clear();
        }
    }
}
